import { createRouter, createWebHistory } from 'vue-router'

import index from '../views/index.vue'
import home from '../views/home.vue'
import stu from '../views/stu.vue'
import tea from '../views/tea.vue'
import addstu from '../views/addstu.vue'
import addtea from '../views/addtea.vue'
import register from '../components/register.vue'
const routes = [
  {
    path:'/',
    name:'index',
    component: index
  },
  {
    path:'/home',
    name:'home',
    component: home
  },
  {
    path:'/register',
    name:'register',
    component: register
  },
  {
    path:'/stu',
    name:'stu',
    component: stu
  },
  {
    path:'/tea',
    name:'tea',
    component: tea
  },
  {
    path:'/addtea',
    name:'addtea',
    component: addtea
  },
  {
    path:'/addstu',
    name:'addstu',
    component: addstu
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
